<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const obj = [
            { department: '开发部', group: 'Android小组', salary: 100 },
            { department: '开发部', group: 'Android小组', salary: 101 },
            { department: '开发部', group: 'Android小组', salary: 102 },
            { department: '开发部', group: 'Android小组', salary: 103 },
            { department: '开发部', group: 'Ios小组', salary: 104 },
            { department: '开发部', group: 'Ios小组', salary: 105 },
            { department: '设计部', group: 'Ui小组', salary: 106 },
            { department: '设计部', group: 'Ui小组', salary: 107 },
            { department: '设计部', group: 'Ps小组', salary: 108 },
        ]
        let newObj = []
        newObj.forEach(value => {
            if(department.value = '开发部'){
                // 开发部

            }else if (department.value = '设计部'){33333
                // 设计部

            }else{
                // 既不是开发部也不是设计部

            }

        })
    </script>
</body>

</html>
